package com.xuyh.logonline.controller;

import com.xuyh.logonline.properties.LogOnlineProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuyh
 * @data 2019年1月9日 12:07:45
 * @email 497418972@qq.com
 */
@RestController
@RequestMapping("logOnline")
public class LogOnlineController {

    @Autowired
    private LogOnlineProperties logOnlineProperties;

    @RequestMapping("url")
    public String url() {
        return logOnlineProperties.getUrl();
    }
}
